import React from "react";
import {IconButton} from "@material-ui/core";
import {ArrowRightAltRounded, DeleteRounded, EditRounded} from "@material-ui/icons";

export const renderEditDeleteActions = row => (
    <React.Fragment>
        <IconButton
            style={{padding: '5px'}}
            onClick={e => e.stopPropagation()}
        >
            <EditRounded/>
        </IconButton>
        <IconButton
            style={{padding: '5px'}}
            onClick={e => e.stopPropagation()}
        >
            <DeleteRounded/>
        </IconButton>
    </React.Fragment>
);

export const renderViewAction = row => (
    <IconButton
        style={{padding: '5px'}}
        onClick={e => e.stopPropagation()}
    >
        <ArrowRightAltRounded/>
    </IconButton>
);

